class ProductsController < ApplicationController
	def by_category
		cat_id = params[:id]
		@products = Product.get_products_by_category cat_id
	end
	
	def show
		id = params[:id]
		@product = Product.find id
	end
  
  def search
    for_word = params[:for_word]
		@products = Product.search for_word
  end
end
